<div class="wrap">

<div id='addproduct_ajaxResponse' class="ajaxResponse"></div>
<h2>{TranslateTag}B_LABEL_CREATE_PRODUCT{/TranslateTag}</h2>
<form name="addproduct" enctype="multipart/form-data" id="addproduct" method="post" >
	<input type="hidden" name="act" value="addproduct" />
     {if $smarty.get.submod}
    <input type="hidden" name="url" value="?module={$smarty.get.module}&sub1={$smarty.get.sub1}&submod={$smarty.get.submod}&groupid={$smarty.get.groupid}" />
    {else}
    	<input type="hidden" name="url" value="?module={$smarty.get.module}&sub1={$smarty.get.sub1}" />	
    {/if}
    <input type="hidden" name="total_photos" id="total_photos" value="3" />
	<table class="adminform" width="100%" cellspacing="2" cellpadding="5">
		<tr>
			<th scope="row" valign="top">
			{TranslateTag}B_LABEL_PRODUCT_GROUP{/TranslateTag}:</th>
			<td>        
	  			<select name='product_group_id' id='product_group_id' class='postform'>
		  			{foreach name=cat from=$PRODUCTLIST item=item}
						<option value='{$item->product_group_id}' {if $smarty.get.groupid eq $item->product_group_id} selected="selected" {/if}>
							{$item->product_group_name}
						</option>
					{/foreach}
				</select>
	  		</td>
		</tr>
		<tr>
			<th scope="row" valign="top">
			Status:</th>
			<td>        
	  			<select name='status' id='status' class='postform'>
					<option value='normal'>Normal</option>
					<option value='new'>New</option>
				</select>
	  		</td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="top">
			{TranslateTag}B_LABEL_PRODUCT_NAME{/TranslateTag}:</th>
			<td width="67%">
			<input name="product_name" id="product_name" type="text" value="" size="50" /></td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="top">
			{TranslateTag}B_LABEL_THUMBNAIL{/TranslateTag}:</th>
			<td width="67%">
			<input type="file" name="product_thumbnail"/>
            </td>
		</tr>
        <tbody id="product_photos">
        <tr>
			<th width="33%" scope="row" valign="top">
			Image 1:</th>
			<td width="67%">
			<input type="file" name="product_image_1" />
            </td>
		</tr>
        <tr>
			<th width="33%" scope="row" valign="top">
			Image 2:</th>
			<td width="67%">
			<input type="file" name="product_image_2" />
            </td>
		</tr>
        <tr>
			<th width="33%" scope="row" valign="top">
			Image 3:</th>
			<td width="67%">
			<input type="file" name="product_image_3" />
            </td>
		</tr>
        </tbody>
         <tr>
			<th width="33%" scope="row" valign="top">
			</th>
			<td width="67%">
			<a href="javascript: void(0)" onclick="onAddProductPhotos('product_photos','total_photos');">Add images</a>
            </td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="top">
			{TranslateTag}B_LABEL_PRICE{/TranslateTag}:</th>
			<td width="67%">
			<input name="product_price" id="product_price" type="text" value="" size="20" /></td>
		</tr>
		<tr>
			<th scope="row" valign="top">
			{TranslateTag}B_LABEL_CURRENCY{/TranslateTag}:</th>
			<td>        
	  			<select name='currency_id' id='currency_id' class='postform'>
		  			{foreach name=currency from=$CURRENCY item=item}
						<option id='{$item->currency_id}' value='{$item->currency_id}'>
						{$item->code}
					</option>
					{/foreach}
				</select>
	  		</td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="unit_cost">{TranslateTag}B_LABEL_TAX{/TranslateTag} (%):</label></th>
			<td width="67%">
			<input name="tax" id="tax" type="text" value="" size="10" /></td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="unit_cost">Transit days:</label></th>
			<td width="67%">
			<input name="transitdays" id="transitdays" type="text" value="" size="10" /></td>
		</tr>
		<tr>
			<th scope="row" valign="top">
			<label for="description">{TranslateTag}B_LABEL_DESCRIPTION{/TranslateTag}:</label></th>
			<td><textarea name="product_description" id="product_description" rows="5" cols="50" style="width: 97%;"></textarea></td>
		</tr>
	</table>
	<p class="submit" align = "right">
		<input type="image" name="submit" src="../view/admin/images/object_save.png" value="" />
	</p>
</form>

</div>